package adp.scrumcards;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.ImageView;

public class ShowImageActivity extends Activity implements OnClickListener{

	int[] mThumbIds = {
    		R.drawable.carta_0, R.drawable.carta_1,
            R.drawable.carta_2, R.drawable.carta_3,
            R.drawable.carta_4, R.drawable.carta_5,
            R.drawable.carta_6, R.drawable.carta_7,
            R.drawable.carta_8, R.drawable.carta_9,
            R.drawable.carta_10, R.drawable.carta_11,
            R.drawable.carta_12
    };
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.imagelayaut);
		
		Bundle extras = getIntent().getExtras();
		
		ImageView imgv = (ImageView) findViewById(R.id.imageView1);
        imgv.setOnClickListener(this);
        imgv.setImageResource(mThumbIds[extras.getInt("image")]);
	}

	@Override
	public void onClick(View v) {
		finish();
	}
	
	

}
